package com.chaofan.emos.wx.db.mapper;

import com.chaofan.emos.wx.db.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;
import java.util.Set;

/**
* @author 91566
* @description 针对表【tb_user(用户表)】的数据库操作Mapper
* @createDate 2022-01-30 12:23:46
* @Entity com.chaofan.emos.wx.db.domain.User
*/
@Mapper
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Map<String, Object> map);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    boolean haveRootUser();

    Integer selectIdByOpenId(String openId);

    Set<String> searchUserPermissions(int userId);

}
